from django.urls import path
from django.conf.urls import url
from . import views
urlpatterns = [
    path('', views.index),
    path('welcome/', views.welcome),
    path('publish/', views.publish),
    path('addArticle/', views.addArticle),
    path('updateArticle/', views.updateArticle),
    path('getArticleByTitle/', views.getArticleByTitle),
    path('login/', views.login),
    path('register/', views.register),
    path('manage/', views.manage),
    path('articleList/', views.articleList),
    path('categoryList/', views.categoryList),
    path('getCategoryList/', views.getCategoryList),
    path('getArticle/', views.getArticle),
    path('addCategory/', views.addCategory),
    path('updateCategory/', views.updateCategory),

    url(r'^editCategory/(\d)/$', views.editCategory),
    url(r'^getArticleListBycategory/(\d)/$', views.getArticleListBycategory),
    url(r'^getArticleByTag/(\d)/$', views.getArticleByTag),
    url(r'^getArticleById/(\d)/$', views.getArticleById),
    url(r'^editArticle/(\d)/$', views.editArticle),
    url(r'^delete/(\d)/$', views.delete),
]
